<?php
/**
* Class DeleteMain_Project_device_slider into Bo Controller
* @author SillySmart
* @copyright SillySmart
* @package Mvc.Controllers.Bo
* @see Mvc.Controllers.Bo.ControllerProtected
* @see Mvc.Controllers.SiteProtected
* @see Sls.Controllers.Core.SLS_GenericController
* @since 1.0
*
*/
class BoDeleteMain_Project_device_slider extends BoControllerProtected
{
	public function init()
	{
		parent::init();
	}

	public function action()
	{
		// Check account rights
		$right = SLS_BoRights::isAuthorized("delete","Main_Project_device_slider",$this->_generic->getActionId());
		if ($right == -1)
			$this->_generic->redirect("Bo/Connection.sls");
		else if ($right == 0)
			$this->_generic->redirect("Bo/ListMain_Project_device_slider.sls");
		// /Check account rights
		
		$bo = new SLS_BoDelete($this,"Project_device_slider","main");
		$bo->setUrlToRedirect("Bo","ListMain_Project_device_slider");
		$this->saveXML($bo->constructDelete());
	}
}
?>